package com.shuai.clientsdk;


import com.shuai.clientsdk.client.BaixsAPIClient;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@Data
@ComponentScan
@ConfigurationProperties("baixs.client")
public class BaixsAPIClientConfig {
    private String apiKey;
    private String apiSecret;

    @Bean
    public BaixsAPIClient apiClient() {
        return new BaixsAPIClient(apiKey,apiSecret);
    }
}
